package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * 腾讯配置
 * Created by wuwc on 2017/7/13.
 */
@Component
//@ConfigurationProperties(prefix = "tencent")
//@PropertySource("classpath:properties/tencent.properties")
@DisconfFile(targetDirPath = "disconf", filename = "tencent.properties")
public class TencentProperties {

    private String antiFraudUrl;
    private String secretId;
    private String secretKey;
    private String region;

    /**
     * 车辆识别OCR访问url地址
     */
    private String ocrRecognityUrl;
    /**
     * 车辆识别OCR访问host
     */
    private String ocrHost;
    /**
     * 车辆识别OCR 应用ID
     */
    private Long ocrAppid;
    /**
     * 车辆识别加密键ID
     */
    private String ocrSecretId;
    /**
     * 车辆识别OCR加密Key
     */
    private String ocrSecretKey;

    /**
     * 身份证识别
     */
    private String idcardRecognizeUrl;

    /**
     * 获取人脸识别tokenUrl
     */
    private String accessTokenUrl;
    /**
     * 获取人脸识别TicketUrl
     */
    private String queryTicketUrl;
    /**
     * 获取人脸识别上传基本信息并获取H5faceid Url
     */
    private String queryH5faceidUrl;
    /**
     * 获取人脸识别验证Url
     */
    private String vertifyFaceUrl;
    /**
     * 获取人脸识别查询结果url
     */
    private String queryFaceResultUrl;
    /**
     * 获取人脸识别appId
     */
    private String faceAppId;
    /**
     * 获取人脸识别faceSerectKey
     */
    private String faceSerectKey;
    /**
     * 获取人脸识别验证结果跳转url
     */
    private String faceBackUrl;

    /**
     * API方式的人脸识别 通过身份证与照片的比对 "https://ida.webank.com/api/paas/easyface"
     */
    private String apiEasyface;

    @DisconfFileItem(name = "tencent.antiFraudUrl", associateField = "antiFraudUrl")
    public String getAntiFraudUrl() {
        return antiFraudUrl;
    }

    public void setAntiFraudUrl(String antiFraudUrl) {
        this.antiFraudUrl = antiFraudUrl;
    }

    @DisconfFileItem(name = "tencent.secretId", associateField = "secretId")
    public String getSecretId() {
        return secretId;
    }

    public void setSecretId(String secretId) {
        this.secretId = secretId;
    }

    @DisconfFileItem(name = "tencent.secretKey", associateField = "secretKey")
    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    @DisconfFileItem(name = "tencent.region", associateField = "region")
    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }
    @DisconfFileItem(name = "tencent.ocrRecognityUrl", associateField = "ocrRecognityUrl")
    public String getOcrRecognityUrl() {
        return ocrRecognityUrl;
    }

    public void setOcrRecognityUrl(String ocrRecognityUrl) {
        this.ocrRecognityUrl = ocrRecognityUrl;
    }
    @DisconfFileItem(name = "tencent.ocrHost", associateField = "ocrHost")
    public String getOcrHost() {
        return ocrHost;
    }

    public void setOcrHost(String ocrHost) {
        this.ocrHost = ocrHost;
    }
    @DisconfFileItem(name = "tencent.ocrAppid", associateField = "ocrAppid")
    public Long getOcrAppid() {
        return ocrAppid;
    }

    public void setOcrAppid(Long ocrAppid) {
        this.ocrAppid = ocrAppid;
    }

    @DisconfFileItem(name = "tencent.ocrSecretId", associateField = "ocrSecretId")
    public String getOcrSecretId() {
        return ocrSecretId;
    }

    public void setOcrSecretId(String ocrSecretId) {
        this.ocrSecretId = ocrSecretId;
    }
    @DisconfFileItem(name = "tencent.ocrSecretKey", associateField = "ocrSecretKey")
    public String getOcrSecretKey() {
        return ocrSecretKey;
    }

    public void setOcrSecretKey(String ocrSecretKey) {
        this.ocrSecretKey = ocrSecretKey;
    }
    @DisconfFileItem(name = "tencent.idcardRecognizeUrl", associateField = "idcardRecognizeUrl")
    public String getIdcardRecognizeUrl() {
        return idcardRecognizeUrl;
    }

    public void setIdcardRecognizeUrl(String idcardRecognizeUrl) {
        this.idcardRecognizeUrl = idcardRecognizeUrl;
    }

    /*====================腾讯人脸识别-start=======================*/
    @DisconfFileItem(name = "tencent.face.accessToken.url", associateField = "accessTokenUrl")
    public String getAccessTokenUrl() {
        return accessTokenUrl;
    }

    public void setAccessTokenUrl(String accessTokenUrl) {
        this.accessTokenUrl = accessTokenUrl;
    }

    @DisconfFileItem(name = "tencent.face.queryTicket.url", associateField = "queryTicketUrl")
    public String getQueryTicketUrl() {
        return queryTicketUrl;
    }

    public void setQueryTicketUrl(String queryTicketUrl) {
        this.queryTicketUrl = queryTicketUrl;
    }

    @DisconfFileItem(name = "tencent.face.queryH5faceid.url", associateField = "queryH5faceidUrl")
    public String getQueryH5faceidUrl() {
        return queryH5faceidUrl;
    }

    public void setQueryH5faceidUrl(String queryH5faceidUrl) {
        this.queryH5faceidUrl = queryH5faceidUrl;
    }
    @DisconfFileItem(name = "tencent.face.vertifyFace.url", associateField = "vertifyFaceUrl")
    public String getVertifyFaceUrl() {
        return vertifyFaceUrl;
    }

    public void setVertifyFaceUrl(String vertifyFaceUrl) {
        this.vertifyFaceUrl = vertifyFaceUrl;
    }
    @DisconfFileItem(name = "tencent.face.queryFaceResultUrl.url", associateField = "queryFaceResultUrl")
    public String getQueryFaceResultUrl() {
        return queryFaceResultUrl;
    }

    public void setQueryFaceResultUrl(String queryFaceResultUrl) {
        this.queryFaceResultUrl = queryFaceResultUrl;
    }
    @DisconfFileItem(name = "tencent.face.appId", associateField = "faceAppId")
    public String getFaceAppId() {
        return faceAppId;
    }

    public void setFaceAppId(String faceAppId) {
        this.faceAppId = faceAppId;
    }
    @DisconfFileItem(name = "tencent.face.serectKey", associateField = "faceSerectKey")
    public String getFaceSerectKey() {
        return faceSerectKey;
    }

    public void setFaceSerectKey(String faceSerectKey) {
        this.faceSerectKey = faceSerectKey;
    }
    @DisconfFileItem(name = "tencent.face.callBack.url", associateField = "faceBackUrl")
    public String getFaceBackUrl() {
        return faceBackUrl;
    }

    public void setFaceBackUrl(String faceBackUrl) {
        this.faceBackUrl = faceBackUrl;
    }

    /*====================腾讯人脸识别-end=======================*/


    /**===================API方式的腾讯人脸识别==========================*/
    @DisconfFileItem(name = "tencent.apiEasyface", associateField = "apiEasyface")
    public String getApiEasyface() {
        return apiEasyface;
    }

    public void setApiEasyface(String apiEasyface) {
        this.apiEasyface = apiEasyface;
    }
}
